<div class="popup_body">
    <div class="ui_table">
        <form>
            <input type="hidden" name="id" value="${(entity.id)!''}">
            <table cellpadding="0" cellspacing="0">
                <tr>
                    <td width="80" align="right">部门名称：</td>
                    <td><input type="text" class="text easyui-validatebox" required="true" name="deptName"
                               maxlength="40" value="${(entity.deptName)!''}"/></td>
                </tr>
                <#--<tr>-->
                    <#--<td align="right">上级部门：</td>-->
                    <#--<td>-->
                        <#--<input name="parentId" class="easyui-combotree" editable="false" required="required"-->
                               <#--value="${(entity.parentId)!''}"-->
                               <#--style="width: 184px; height: 28px;"-->
                               <#--data-options="url:'${contextPath}/security/basic/dept/tree.htm?agentId=${(entity.agentId)!''}&dummy=${'无'?url}'"/>-->
                    <#--</td>-->
                <#--</tr>-->
                <tr>
                    <td align="right" valign="top" style="padding-top:10px;">备注：</td>
                    <td><textarea  maxlength="20" name="memo">${(entity.memo)!''}</textarea></td>
                </tr>
            </table>
        </form>
    </div>
</div>
<div class="popup_btn">
    <button class="btn btn_red ok">确定</button>
    <button class="btn btn_border close">关闭</button>
</div>
<script>
    (function () {
        var pid = '${pid}',
                win = $('#' + pid),
                form = win.find('form');

        win.find('button.ok').click(function () {
            form.form('submit', {
                url: '${contextPath}/security/basic/dept/update.htm',
                success: function (text) {
                    var json = $.evalJSON(text);
                <@app.json_jump/>
                    if (json.success) {
                        $.messager.alert('提示信息', '操作成功', 'info');
                        win.window('close');
                    } else {
                        $.messager.alert('提示信息', json.message, 'info');
                    }
                }
            });
        });
        win.find('button.close').click(function () {
            win.window('close');
        });

    })()
</script>
